package cn.com.cetccst.sdk.openapi;

import android.content.Intent;

import cn.com.cetccst.sdk.modelbase.BaseReq;
import cn.com.cetccst.sdk.modelbase.BaseResp;

public interface ISSAPI {

    boolean handleIntent(Intent intent, ISSAPIEventHandler handler);

    boolean isSSAppInstalled();

    int getSSAppSupportAPI();

    boolean openSSApp();

    boolean sendReq(BaseReq req);

    boolean sendReq(BaseReq req, IResponseListener responseListener);

    boolean sendResp(BaseResp resp);

    interface IResponseListener<T extends BaseResp> {
         void onResponse(T resp);
    }
}
